package per.liuchengyin.alipay.letter;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;


import java.nio.channels.Channel;

@Component
public class BizConsumer {
    @RabbitListener(queues = "biaQueue1")
    public  void receiveBizMsg1(Message message, Channel channel){
        System.out.println("收到消息1：" + new String(message.getBody()));
    }
}
